package com.chinaisafe.user.entity;

import java.io.Serial;
import com.chinaisafe.user.vo.request.SysDeptReqVO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaisafe.base.mybatisplus.entity.BaseEntity;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * SysDept
 * Description：部门实体类
 *
 * @author xuefu.shu
 * @date  2024-07-12 10:39:32
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_dept")
@Schema(name = "SysDept", description = "部门")
public class SysDept extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "部门维度_id")
    @TableField("sys_dept_dimension_id")
    private Long sysDeptDimensionId;

    @Schema(description = "部门名称")
    @TableField("`name`")
    private String name;

    @Schema(description = "部门编码")
    @TableField("`code`")
    private String code;

    @Schema(description = "上级部门")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "排序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "部门负责人")
    @TableField("manager_user_id")
    private Long managerUserId;

    @Schema(description = "是否启用")
    @TableField("`enable`")
    private Boolean enable;
}
